package com.emm.yixun.openapi.hander;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emm.yixun.common.app.GetSubscribePageReqDto;
import com.emm.yixun.common.app.GetSubscribePageResDto;
import com.emm.yixun.openapi.dto.base.BaseRequestDTO;
import com.emm.yixun.openapi.dto.base.BaseResponseDTO;
import com.emm.yixun.openapi.hander.base.CommonAbstractHander;
import com.emm.yixun.openapi.vo.GetSubscribePageReqVo;
import com.emm.yixun.customer.service.app.CustomerServiceAppFacade;

/**
 * 查询认购分页接口
 * @author Administrator
 *
 */
@Service("getSubscribePageHander")
public class GetSubscribePageHander extends CommonAbstractHander{
	
	@Autowired
	private CustomerServiceAppFacade customerServiceAppFacade;
	
	@SuppressWarnings("rawtypes")
	@Override
	public BaseResponseDTO doBusiness(BaseRequestDTO reqDto) {
		GetSubscribePageReqVo req = (GetSubscribePageReqVo)reqDto;
		GetSubscribePageReqDto reqDto1 = req.getParams();
		BaseResponseDTO<GetSubscribePageResDto> res = new BaseResponseDTO<GetSubscribePageResDto>();
		res.setResData(customerServiceAppFacade.getSubscribePage(reqDto1));
		return res;
	}
	
}
